package com.shengzai

object Code14function_dj {
  def main(args: Array[String]): Unit = {

  println(jieCheng(3))


  }

  def jieCheng(a:Int): Int={
    if(a!=1){
       a*jieCheng(a-1)
    }else
       1
  }
}
